package com.example.service;

import com.example.domain.Student;

import java.util.List;
import java.util.Optional;

/**
 * @author 01
 * @date 2019-10-05
 **/
public interface StudentService {

    List<Student> list() throws ServiceException;

    Optional<Student> getStudent(Long id) throws ServiceException;

    void addStudent(Student student) throws ServiceException;

    void add(Long id, String name, String group) throws ServiceException;

    void updateStudent(Student student) throws ServiceException;

    void deleteStudent(Student student) throws ServiceException;
}
